//
//  BROpenURL.h
//  BrezzeSaaS
//
//  Created by IOS on 2021/10/18.
//  Copyright © 2021 Brezze GWG. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "BRBaseModel.h"

NS_ASSUME_NONNULL_BEGIN
@class BRInviteModel;

@interface BROpenURL : NSObject

+ (void)callPhone;
+ (void)callPhone:(NSString *)phone;

+ (void)callEMail;
+ (void)callEMail:(NSString *)emailStr;

+ (void)openMap:(CLLocationCoordinate2D)myLocation toLocation:(CLLocationCoordinate2D)toLocation;
+ (void)openMap:(CLLocationCoordinate2D)myLocation toLocation:(CLLocationCoordinate2D)toLocation titleAddress:(NSString *)address;
// 打开系统钱包
+ (void)openWallet;
// 打开链接
+ (void)openURL:(NSString *)urlStr;
/// 跳转WhatsApp
+ (void)callWhatsapp;
/// 跳转WhatsApp
+ (void)callWhatsapp:(NSString *)phone;
/// 获取其中某个参数
+ (NSString *)br_getParamByName:(NSString *)name URLString:(NSString *)url;

+ (void)br_saveInviteCode:(NSString *)code;
+ (void)br_saveInviteCode:(NSString *)code isUse:(BOOL)isUse;
+ (BRInviteModel *)br_inviteCode;
+ (void)br_removeInviteCode;
+ (void)br_pasteInviteCode;


@end


@interface BRInviteModel : BRBaseModel

@property (nonatomic,assign) BOOL isUse;

@property (nonatomic,strong) NSString *inviteCode;

@end

NS_ASSUME_NONNULL_END
